import request from '@/utils/request_inv'
import Qs from 'qs'

// 查询project列表
export function listProject(query) {
  return request({
    url: '/company/select/condition',
    method: 'get',
    params: query
  })
}
// // 查询project详细
// export function getProject(ProjectId) {
//   return request({
//     url: '/company/select/condition' + ProjectId,
//     method: 'get'
//   })
// }

// 新增project
export function addProject(data) {
  return request({
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    url: '/company/add',
    method: 'post',
    // query: Qs.stringify(data),
    data: Qs.stringify(data)
  })
}
// 修改project
export function updateProject(data) {
  return request({
    url: '/company/update/item',
    method: 'put',
    data: data
  })
}

